<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Hello</title>
</head>
<body>
欢迎您，<span th:text="${user.usrName}">usrName</span>!
<!--<span th:text="|Hello ${user.userName}!|">Hello userName!</span>-->

<div th:inline="text">
    <p>Hello,[[${usrName}}]]!</p>
    <br/>
</div>

<script th:inline="javascript">
    var msg = 'Hello '+[[${usrName}]]+'! '
    alert(msg);
</script>

<div th:object="${user}">
    <p th:text="*{usrId}"></p>
    <p th:text="*{usrName}"></p>
</div>
</body>
</html>